[VERSN2]
watermark "Mod made by YochiThMaster333"

// This is required for custom addon generic parts (wheels or spoilers; all NFS games) and/or custom addon vector vinyls (Carbon, ProStreet, Undercover). Without it, custom wheels and vector vinyls might cause many issues to your game (most notably the game crash)
speedreflect auto

// Checks if FrontB.lzc file has been modified with TexEd
if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
end

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES CARSELECT_MANUFACTURER_NISSAN CARSELECT_MANUFACTURER_NISSAN "Be1Parts\CARSELECT_MANUFACTURER_NISSAN.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES SECONDARY_LOGO_NISSANBE1 SECONDARY_LOGO_NISSANBE1 "Be1Parts\SECONDARY_LOGO_NISSANBE1.dds"
bind_textures synchronize FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES "Be1Parts\TuningIcons"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CARNAME_NISSAN_NISSANBE1 "1987 Nissan Be-1"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NISSANBE1_1 "Formula-Style"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HOOD_NISSANBE1_2 "WRX Style"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROOF_NISSANBE1_1 "J2 Scoop"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NISSANBE1_1 "Grifter"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NISSANBE1_2 "Drag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SPOILER_NISSANBE1_3 "Hammerhead"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_HDLGT_FIGARO_1 "Lunar"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NISSANBE1_1 "Tinted"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NISSANBE1_2 "Clear"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NISSANBE1_3 "Tinted Clear"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NISSANBE1_4 "Austrian Flag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRLGT_NISSANBE1_5 "Tinted Austrian Flag"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_GRILLE_NISSANBE1_1 "Indicators Delete"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_MIRROR_NISSANBE1_1 "Chidori"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_INTERIOR_NISSANBE1_1 "GlowShift White Gauges"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_INTERIOR_NISSANBE1_2 "GlowShift Black Gauges"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRAKES_FIGARO_1 "Brembo"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BRAKES_FIGARO_3 "Wilwood"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMPLATES "License Plate Position"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_NISSANBE1_1 "Painted Plastic"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_NISSANBE1_2 "Ace"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_NISSANBE1_3 "Rage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_BODY_NISSANBE1_4 "Rocket Benn1 by Vee-Tec"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_1 "Sparco Roadster"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_2 "Sparco Milano 2"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_3 "Sparco Milano 3"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_4 "Sparco Torino"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_5 "Sparco Monza"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_6 "Sparco Modena"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_7 "Sparco Siena"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_8 "UNP Brand"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_9 "UNP Extreme"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_SEATS_NISSANBE1_10 "UNP Classic"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_STEER_NISSANBE1_1 "Sparco Flash 5"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_STEER_NISSANBE1_2 "Sparco Faster"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_HONCRX_0 "No Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_HONCRX_1 "Chrome"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_ROLCAGE_HONCRX_2 "Painted"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO PN_VINYLS_NISSANBE1_1 "Letty Ortiz"

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMCAGE "Roll Cage"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMSEATS "Seats"
add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_YTMSTEER "Steering Wheel"

// Those files are actually unloaded to save RAM, so don't worry ^^
delete FRONTEND\FRONTB.LZC
delete LANGUAGES\ENGLISH.BIN

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1
do
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1
else
end

if collection_exists GLOBAL\GLOBALB.LZC Collisions NISSANBE1
do
remove_collection GLOBAL\GLOBALB.LZC Collisions NISSANBE1
else
end

if collection_exists GLOBAL\GLOBALB.LZC SlotOverrides NISSANBE1_PART_SPOILER
do
remove_collection GLOBAL\GLOBALB.LZC SlotOverrides NISSANBE1_PART_SPOILER
else
end

copy_collection GLOBAL\GLOBALB.LZC CarTypeInfos GTI NISSANBE1
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1 DefaultBasePaint NISSANBE1_PAINT_PUMPKIN
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1 ManufacturerName NISSAN
copy_collection GLOBAL\GLOBALB.LZC Collisions GTI NISSANBE1
import override GLOBAL\GLOBALB.LZC DBModelParts Be1Parts\NISSANBE1.bin
copy_collection GLOBAL\GLOBALB.LZC SlotOverrides GTI_PART_SPOILER NISSANBE1_PART_SPOILER

if directory_exists absolute CARS\NISSANBE1
do
else
create_folder absolute CARS\NISSANBE1
end

move_file override relative absolute Main\GEOMETRY.BIN CARS\NISSANBE1\GEOMETRY.BIN
move_file override relative absolute Main\TEXTURES.BIN CARS\NISSANBE1\TEXTURES.BIN

combobox "Standard Resolution (512x)" "High Resolution (1024x)" "Choose vinyls resolution."

"Standard Resolution (512x)"
move_file override relative absolute Vinyls\512.BIN CARS\NISSANBE1\VINYLS.BIN

"High Resolution (1024x)"
move_file override relative absolute Vinyls\1024.BIN CARS\NISSANBE1\VINYLS.BIN

end

combobox "Pumpkin Yellow" "Tomato Red" "Hydrangea Blue" "Onion White" "Choose your stock color."

"Pumpkin Yellow"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1 DefaultBasePaint NISSANBE1_PAINT_PUMPKIN
move_file override relative absolute Be1Parts\NISSANBE1.ini scripts\UnlimiterData\NISSANBE1.ini

"Tomato Red"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1 DefaultBasePaint NISSANBE1_PAINT_TOMATO
move_file override relative absolute Be1Parts\NISSANBE1_2.ini scripts\UnlimiterData\NISSANBE1.ini

"Hydrangea Blue"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1 DefaultBasePaint NISSANBE1_PAINT_HYDRANGEA
move_file override relative absolute Be1Parts\NISSANBE1_2.ini scripts\UnlimiterData\NISSANBE1.ini

"Onion White"
update_collection GLOBAL\GLOBALB.LZC CarTypeInfos NISSANBE1 DefaultBasePaint NISSANBE1_PAINT_ONION
move_file override relative absolute Be1Parts\NISSANBE1_2.ini scripts\UnlimiterData\NISSANBE1.ini

end
